package pages;

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
//import org.openqa.selenium.support.PageFactory;

public class HomePage {
	
	private WebDriver driver;

	public HomePage(WebDriver driver) {
		//PageFactory.initElements(driver, this);
		this.driver = driver;
	}

	public void log(String id,String email){
		driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
		if (driver.findElement(By.id(id)).getText().equals(email)){
			System.out.println("Equals");
		}else{
			System.out.println("Not Equals");
		}
	}
}
